﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ArticleEdit.ascx.cs" Inherits="MpSoft.Web.AdminCP.Controls.Content.ArticleEdit" %>
<%@ Register Src="~/AdminCP/ToolsBar/NumberIncrement.ascx" TagPrefix="uc1" TagName="NumberIncrement" %>
<%@ Register Src="~/AdminCP/ToolsBar/Categories.ascx" TagPrefix="uc1" TagName="Categories" %>
<%@ Register Src="~/AdminCP/ToolsBar/MultipleMenu.ascx" TagPrefix="uc1" TagName="MultipleMenu" %>
<%@ Register Src="~/AdminCP/Controls/Modules/ContentLanguage.ascx" TagPrefix="uc1" TagName="ContentLanguage" %>
<div class="row">
    <br />
    <div class="col-sm-8">
        <asp:Literal ID="ltlMessage" runat="server"></asp:Literal>
    </div>
    <div class="col-sm-4 btn-form btn-options align-right">
        <asp:LinkButton ID="lnkSave" OnClick="lnkSave_Click" runat="server" CssClass="btn btn-green btn-large" Text="<i class='glyphicon-edit'>&nbsp;</i>Lưu" />
        <asp:LinkButton ID="lnkSaveExit" OnClick="lnkSaveExit_Click" runat="server" CssClass="btn btn-green btn-large" Text="<i class='glyphicon-new_window'>&nbsp;</i>Lưu & thoát" />
        <a href="?mod=article" class="btn btn-large"><i class="glyphicon-right_arrow">&nbsp;</i> Quay lại</a>
    </div>
</div>

<div class="row">
    <div class="col-sm-12">
        <div class="box box-color box-bordered">
            <div class="box-title">
                <h3>
                    <i class="fa fa-bars"></i>
                    Thông tin bài viết
                </h3>
                <div class="actions">
                    <a href="#" class="btn btn-mini content-slideUp">
                        <i class="fa fa-angle-down"></i>
                    </a>
                </div>
            </div>
            <div class="box-content form-horizontal form-bordered nopadding">
                <ul class="tabs tabs-inline tabs-top">
                    <li class='active'>
                        <a href="#first11" data-toggle='tab'>
                            <i class="glyphicon-cogwheels"></i>Lựa chọn</a>
                    </li>
                     <li>
                        <a href="#second22" data-toggle='tab'>
                            <i class="glyphicon-cogwheels"></i>Nội dụng chi tiết</a>
                    </li>
                    <%if (ShowLanguage)
                      { %><li><a>Chọn ngôn ngữ<select class="selectlanguage"><option value="#vn">Tiếng việt</option>
                        <%= TabLanguage() %></select></a></li>
                    <%} %>
                </ul>
                <div class="tab-content tab-content-inline tab-content-bottom">
                    <div class="tab-pane active" id="first11">
                        <div class="form-group">
                            <label for="textfield" class="control-label col-sm-2">Chọn cấp: </label>
                            <div class="col-sm-10">
                                <uc1:Categories runat="server" ID="ddlCategory" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="textfield" class="control-label col-sm-2">Chọn vị trí Menu: </label>
                            <div class="col-sm-10">
                                <uc1:MultipleMenu runat="server" ID="ddlMenu" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="textfield" class="control-label col-sm-2">Tùy chọn: </label>
                            <div class="col-sm-10">
                                <asp:CheckBox ID="chkIsActive" runat="server" Checked="true" />
                                <label for="<%= chkIsActive.ClientID %>">Kích hoạt</label>
                                &nbsp;&nbsp;
                         <uc1:NumberIncrement runat="server" ID="txtOrderSort" />
                                Thứ tự
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="<%= txtLink.ClientID %>" class="control-label col-sm-2">Liên kết: </label>
                            <div class="col-sm-10">
                                <asp:TextBox ID="txtLink" runat="server" placeholder="Liên kết" CssClass="form-control"></asp:TextBox>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="textfield" class="control-label col-sm-2">Kiểu mở liên kết: </label>
                            <div class="col-sm-10">
                                <asp:DropDownList ID="ddlTypeOpen" runat="server" CssClass="select2-me" Style="width: 250px;">
                                    <asp:ListItem Value="_self">Không mở Tab</asp:ListItem>
                                    <asp:ListItem Value="_blank">Mở Tab mới</asp:ListItem>
                                </asp:DropDownList>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="textfield" class="control-label col-sm-2">Chọn Icon: </label>
                            <div class="col-sm-10">
                                <asp:TextBox ID="txtIcon" runat="server" CssClass="form-base" placeholder="Icon" Width="85%"></asp:TextBox>
                                <a class="btn btn-primary" onclick="BrowseServer('<%= txtIcon.ClientID%>')"><i class="glyphicon-picture"></i>Chọn hình</a>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="second22">
                       <div class="tab-content tab-content-inline tab-content-bottom">
                            <div class="tab-pane active" id="vn">
                                <uc1:ContentLanguage runat="server" ID="contentLngDefault" />
                            </div>
                            <asp:Repeater ID="rpList" runat="server" OnItemDataBound="rpList_ItemDataBound">
                                <ItemTemplate>
                                    <div class="tab-pane" id="<%# Eval("LanguageCode") %>">
                                        <uc1:ContentLanguage runat="server" ID="ContentLanguage" />
                                    </div>
                                </ItemTemplate>
                            </asp:Repeater>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
